import instance from "@/axios";
// 权限树形列表
export const treeList = ()=>instance.get("/permission/tree")

// 权限列表
export const permissionList = ()=>instance.get("/permission/list")


export const addPermissionList = (permissionForm)=>instance.post("/permission/add",permissionForm)

//获取上级菜单信息
export  const  getOnePermission = (id)=>instance.get("/permission/getOne/"+id)

export const deletePermission = (id) => instance.delete("/permission/delete/"+id)